<?
/**
* Copyright (c) 2002-2007 BioWare Corp.
* http://www.bigdaddymonitor.org
*
* This file is part of the BigDaddy Monitoring
* program. It is free software distributed under
* the terms of the BSD License. It is ditributed
* in the hopes that it will be useful, but
* WITHOUT ANY WARRANTY; without event the implied
* warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE.
*
* The BSD License is available from:
* http://www.opensource.org/licenses/bsd-license.php
**/
?><p><a href="<?=$_SERVER["PHP_SELF"];?>?page=listrole">List Roles</a></p>

<form method="post" action="<?=$_SERVER["PHP_SELF"];?>">
<table border="0" cellpadding="0" cellspacing="0" class="app_table">
<tr class="app_row">
    <td>
	<b>RoleType</b>
    </td>
    <td>
	<select name="roleTypeID" size="1" class="app_select">
	<?
        $aTypes=$RoleAdmin->GetRoleTypes();
        for ($i=0; $i<count($aTypes); $i++)
        {
	    if ($aTypes[$i]["ID"]==$aInfo["roleTypeID"])
	    {
		$s=" selected";
	    }
	    else
	    {
		$s="";
	    }
            ?>
            <option value="<?=$aTypes[$i]["ID"];?>"<?=$s;?>><?=$aTypes[$i]["name"];?></option>
            <?
        }
        ?>
	</select>
    </td>
</tr>
<tr class="app_row">
    <td>
	<b>Batch entry</b>
    </td>
    <td>
	<textarea rows="10" cols="50" name="batchroledefinitions"></textarea>
	<br>"Definition","Description","stringID","notes" (stringID and notes are optional but then must be a blank entry)
    </td>
</tr>
<tr class="app_row">
    <td colspan="2">
	<input type="hidden" name="roleID" value="<?=$aInfo["ID"];?>">
	<input type="hidden" name="page" value="setrolebatch">
	<input type="submit" name="submit" value="Submit" class="app_submit">
    </td>
</tr>
</table>
</form>


